package com.ruoyi.cm.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 期数管理业务对象 cm_bs_qs
 *
 * @author zyb
 * @date 2024-09-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CmBsQsBo extends BaseEntity {

    /**
     * 合同里程碑
     */
//    @NotNull(message = "所属合同id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long contractMilestone;

    /**
     * 期数id
     */
//    @NotNull(message = "期数id不能为空", groups = { EditGroup.class })
    private Long qsId;
    //标段id
    private Long bdId;

    private Long zdId;
    /**
     * 期数
     */
    @NotNull(message = "期数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer settleIndex;

    //是否设置为当前期数；1：是，0：否；
    private Integer currentFlag;

    /**
     * 期数名称
     */
    @NotBlank(message = "期数名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String settleName;

    /**
     * 开始日期
     */
//    @NotNull(message = "开始日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy_MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date settleBeginDate;

    /**
     * 结束日期
     */
//    @NotNull(message = "结束日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy_MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date settleEndDate;

    /**
     * 支付方式
     */
//    @NotBlank(message = "支付方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payMode;

    /**
     * 计量日期
     */
//    @NotNull(message = "计量日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date settleDate;

    /**
     * 支付日期
     */
//    @NotNull(message = "支付日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date payDate;

    /**
     * 支付申请依据
     */
//    @NotBlank(message = "支付申请依据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String zfsqyj;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    //计量类型，1：中间计量，2：其他计量；
    private Integer jlType;


}
